using System;
using System.Collections.Specialized;
using GeneXus.Builder;
using System.IO;
public class blduwpratra : GxBaseBuilder
{
   string exe_path = ".\\bin" ;
   string cs_path = "." ;
   public blduwpratra( ) : base()
   {
   }

   public override void BeforeCompile( )
   {
   }

   public override void AfterCompile( )
   {
      if ( ! File.Exists(exe_path+"\\client.exe.config") || checkTime( exe_path+"\\client.exe.config" , cs_path + "\\client.exe.config" ) )
      {
         File.Copy( cs_path + "\\client.exe.config", exe_path+"\\client.exe.config", true);
      }
   }

   static public void Main( string[] args )
   {
      blduwpratra x = new blduwpratra() ;
      x.LoadVariables( args);
      x.CompileAll( );
   }

   public override StringCollection GetBuildList( )
   {
      StringCollection sc = new StringCollection() ;
      sc.Add( exe_path+"\\uwpratra.exe");
      return sc ;
   }

   public override bool ToBuild( String obj )
   {
      if ( ( obj == exe_path+"\\uwpratra.exe" ) )
      {
         if (checkTime(obj, cs_path + "\\uwpratra.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\bmpratra.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\wmntprsn.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\wmntarea.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\rareas.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tareas.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\pnumaut.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\wvisprsn.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\wprsnmod.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\wafiprsn.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\precpar2.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\pregnrotlf.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\pafiprsn.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\pmodnrotlf.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\pmodprsn.cs" ))
            return true;
      }
      return false ;
   }

}

